$OpenBSD: patch-lgi_Makefile,v 1.4 2017/02/28 11:32:16 dcoppa Exp $
--- lgi/Makefile.orig	Fri May 27 21:56:36 2016
+++ lgi/Makefile	Tue Feb 28 11:53:21 2017
@@ -8,8 +8,8 @@
 PREFIX = /usr/local
 HOST_OS = $(shell uname -s | tr A-Z a-z)
 LUA_VERSION=5.1
-LUA_LIBDIR = $(PREFIX)/lib/lua/$(LUA_VERSION)
-LUA_SHAREDIR = $(PREFIX)/share/lua/$(LUA_VERSION)
+LUA_LIBDIR ?= $(PREFIX)/lib/lua/$(LUA_VERSION)
+LUA_SHAREDIR ?= $(PREFIX)/share/lua/$(LUA_VERSION)
 
 PKG_CONFIG = pkg-config
 GINAME = gobject-introspection-1.0
@@ -27,7 +27,7 @@ LIBFLAG = -bundle -undefined dynamic_lookup
 CCSHARED = -fno-common
 GOBJECT_INTROSPECTION_LIBDIR = $(shell pkg-config --variable=libdir $(GINAME))
 else
-CORE = corelgilua51.so
+CORE = corelgilua${MODLUA_DEP_VERSION}.so
 LIBFLAG = -shared
 CCSHARED = -fPIC
 endif
